<form nz-form [formGroup]="updateForm" class="ant-advanced-search-form" (ngSubmit)="onUpdate()">
    <nz-form-item>
        <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="username">用户名称</nz-form-label>
        <nz-form-control [nzSm]="14" [nzXs]="24">
            <input nz-input formControlName="username"/>
        </nz-form-control>
    </nz-form-item>
    <nz-form-item>
        <nz-form-label  [nzSm]="6" [nzXs]="24" nzFor="password">用户密码</nz-form-label>
        <nz-form-control [nzSm]="14" [nzXs]="24">
            <input [type]="passwordVisible ? 'text' : 'password'" nz-input formControlName="password"/>
        </nz-form-control>
    </nz-form-item>
    
    <div nz-row nzJustify="end">
        <div nz-col class="search-area">
            <button nz-button class="dialog-button" [nzType]="'primary'">确定</button>
            <button nz-button class="dialog-button" (click)="onCancel($event)">取消</button>
        </div>
    </div>
</form>